from real_estate.models import BaseProperty

__author__ = 'leroy'

def get_property_type_code(vals):
    codes = []
    for val in vals:
        codes.append([t for t in BaseProperty.PROPERTY_TYPE if t[1] == val][0][0])
    return codes
